<template>
  <div id="app">
    <my-title :shared="shared"></my-title>
   <tree :workList="dataList" :shared="shared"></tree>
  </div>
</template>

<script>
import tree from "./Tree.vue";
import myTitle from "./title.vue";
export default {
  name: "app",
  props:{
    shared: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      dataList:[
        { label:'医生姓名',
          children:[
            {
              date:'周一',
            },
            {
              date:'周二',
            },
            {
              date:'周三',
            },
            {
              date:'周四',
            },
            {
              date:'周五',
            },            
            {
              date:'周六',
            },
            {
              date:'周日',
            },
          ]
        },
        { label:'李医生',
          children:[
            {
              worker:'早班',
              time:'07:00-15:00'
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'晚班',
              time:'11:00-18:00'
            },
            {
              worker:'',
              time:''
            },            
            {
              worker:'普通班',
              time:'09:00-17:00'
            },
            {
              worker:'',
              time:''
            },
          ]
        },
        { label:'王医生',
          children:[
            {
              worker:'早班',
              time:'07:00-15:00'
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'晚班',
              time:'11:00-18:00'
            },
            {
              worker:'',
              time:''
            },            
            {
              worker:'普通班',
              time:'09:00-17:00'
            },
            {
              worker:'',
              time:''
            },
          ]
        },
        { label:'赵医生',
          children:[
            {
              worker:'早班',
              time:'07:00-15:00'
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'',
              time:''
            },
            {
              worker:'晚班',
              time:'11:00-18:00'
            },
            {
              worker:'',
              time:''
            },            
            {
              worker:'普通班',
              time:'09:00-17:00'
            },
            {
              worker:'',
              time:''
            },
          ]
        },
      ]
    };
  },
  components: {
    tree,
    myTitle
  },
  mounted(){
    console.log('this.$options',this.$options);
  }
};
</script>

<style lang="scss">

</style>
